const tokenKey = 'token'
export function getToken() {
  return window.sessionStorage.getItem(tokenKey)
}

export function setToken(token) {
  return window.sessionStorage.setItem(tokenKey, 'Bearer ' + token)
}

export function removeToken() {
  return window.sessionStorage.removeItem(tokenKey)
}

export function clear() {
  return window.sessionStorage.clear()
}
